export function log(data) {
  console.log(data);
}

export function Clog(data, type = 0) {
  let colorList = {
    '0': 'color: #05C62E',
    '1': 'color: orange',
    '2': 'color: red',
  }
  console.log(`%c${data}`, `${colorList[type]}`);
}

export function Jlog(data, type = 3) {
  let colorList = {
    '0': 'color: #05C62E',
    '1': 'color: orange',
    '2': 'color: red',
    '3': 'color: black',
  }
  console.log(`%c${JSON.stringify(data, null, 2)}`, `${colorList[type]}`);
}
